﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WebSite.Master" AutoEventWireup="true"
    CodeBehind="Demo1.aspx.cs" Inherits="RN.ERP.Web.Demo.Demo1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <link type="text/css" href="../CSS/base.css" rel="Stylesheet" />
    <link type="text/css" href="../CSS/global.css" rel="Stylesheet" />
    <link type="text/css" href="../CSS/style.css" rel="Stylesheet" />
    <div class="x clearfix fn-left">
        <div class="crm_toolbar_left">
        </div>
        <div class="crm_toolbar_center">
            <ul class="crm_action">
                <li><a href="javascript:;" class="ActionA RecordNew" id="action_1" onclick="loadModuleJsOp('4', '0', InsertRecord, ['001'], '001');return false;">
                    新建</a></li>
                <li><a href="javascript:;" class="ActionA RecordImport" id="action_2" onclick="loadModuleJsOp('4', '0', Import, ['005'], '005');return false;">
                    导入</a></li>
                <li><a href="javascript:;" class="ActionA RecordExport" id="action_3" onclick="loadModuleJsOp('4', '0', Export, ['006'], '006');return false;">
                    导出</a></li>
                <li><a href="javascript:;" class="ActionA RecordShare" id="action_4" onclick="loadModuleJsOp('4', '1', ShareRecord, ['007'], '007');return false;">
                    共享</a></li>
                <li><a href="javascript:;" class="ActionA RecordDel" id="action_5" onclick="loadModuleJsOp('4', '2', DeleteRecord, ['010'], '010');return false;">
                    删除</a></li>
                <li><a href="javascript:;" class="ActionA EmailSend" id="action_6" onclick="loadModuleJsOp('4', '2', SendEmail, ['011'], '011');return false;">
                    发送邮件</a></li>
            </ul>
        </div>
        <div class="crm_toolbar_right">
        </div>
    </div>
    <telerik:RadGrid ID="RadGridList" runat="server" ShowStatusBar="True" AllowSorting="True"
        CssClass="tab" CellSpacing="0" Culture="zh-CN" GridLines="None" AllowPaging="True"
        AllowCustomPaging="True" OnNeedDataSource="RadGrid1_NeedDataSource" Width="100%"
        OnItemCommand="RadGridList_ItemCommand">

        <MasterTableView AutoGenerateColumns="false" DataKeyNames="ID" NoMasterRecordsText="暂无数据"
            InsertItemPageIndexAction="ShowItemOnCurrentPage" CommandItemDisplay="Top">
            <CommandItemSettings ExportToPdfText="Export to PDF" />
            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="true">
            </RowIndicatorColumn>
            <EditFormSettings>
                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                </EditColumn>
            </EditFormSettings>
            <PagerStyle AlwaysVisible="True" />
            <CommandItemTemplate>
            </CommandItemTemplate>
            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
            </ExpandCollapseColumn>
            
            <Columns>
                <telerik:GridTemplateColumn HeaderText="选择" UniqueName="Choose" HeaderStyle-Width="5%"
                    HeaderStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        <input id="ckbChoose" type="checkbox" value='<%#Eval("ID") %>' runat="server" />
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" Width="5%"></HeaderStyle>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn HeaderText="属性类码" HeaderStyle-Width="10%" HeaderStyle-HorizontalAlign="Center"
                    FilterControlAltText="Filter MPCodeColumn column" UniqueName="MPCode">
                    <ItemTemplate>
                        <%# Eval("cMPCode")%>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn HeaderText="属性名称" HeaderStyle-Width="15%" HeaderStyle-HorizontalAlign="Center"
                    FilterControlAltText="Filter  MPNamecolumn" UniqueName="MPName">
                    <ItemTemplate>
                        <%# Eval("cMPName")%>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" Width="15%"></HeaderStyle>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn HeaderText="说明" UniqueName="Memo" HeaderStyle-Width="20%"
                    HeaderStyle-HorizontalAlign="Center" FilterControlAltText="Filter Memocolumn">
                    <ItemTemplate>
                        <%# Eval("cMemo")%>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" Width="20%"></HeaderStyle>
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn HeaderText="添加时间" UniqueName="Memo" HeaderStyle-Width="15%"
                    HeaderStyle-HorizontalAlign="Center" FilterControlAltText="Filter Memocolumn">
                    <ItemTemplate>
                        <%# Eval("dCDate")%>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" Width="15%"></HeaderStyle>
                </telerik:GridTemplateColumn>
                <%--<telerik:GridBoundColumn HeaderText="状态" UniqueName="Status" HeaderStyle-Width="5%"
                                    HeaderStyle-HorizontalAlign="Center" FilterControlAltText="Filter Status column">
                                    <HeaderStyle HorizontalAlign="Center" Width="15%"></HeaderStyle>
                                </telerik:GridBoundColumn>--%>
                <%--<telerik:GridTemplateColumn FilterControlAltText="Filter Info column" HeaderText=""
                                    UniqueName="Info">
                                    <HeaderStyle Width="30%" />
                                </telerik:GridTemplateColumn>--%>
                <telerik:GridTemplateColumn HeaderText="操作" HeaderStyle-HorizontalAlign="Center">
                    <ItemTemplate>
                        <asp:LinkButton ID="btnGo" runat="server" CssClass="ActionA RecordNew" CommandName="go"
                            CommandArgument='<%# Eval("ID") %>' title="设置子属性"></asp:LinkButton>
                        <asp:LinkButton ID="btnDel" runat="server" CssClass="ActionA RecordDel" OnClientClick="return confirm('确定删除？');"
                            CommandName="del" CommandArgument='<%# Eval("ID") %>' title="删除"></asp:LinkButton>
                        <span id="edit" runat="server"><a style="cursor: pointer;" onclick="AddOrEditKC(2,<%#Eval("ID") %>);"
                            class="ActionA RecordEdit" title="修改"></a></span><span id="Span1" runat="server"><a
                                style="cursor: pointer;" onclick="AddOrEditKC(1,<%#Eval("ID") %>);" class="ActionA RecordDetail"
                                title="查看"></a></span>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
            </Columns>
        </MasterTableView>
        <ClientSettings EnableRowHoverStyle="true">
            <Selecting AllowRowSelect="True"></Selecting>
        </ClientSettings>
        <PagerStyle AlwaysVisible="True" />
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>
    </telerik:RadGrid>
</asp:Content>
